<?php
/**
 * @author Vitaly
 * Date: 27.04.12
 */

class MessageModel
{
    private $id;
    private $time;
    private $author;
    private $text;
    private $video;

    function __construct($id = null, $author = null, $text = null, $video = null, $time = null)
    {
        $this->setId($id)
             ->setAuthor($author)
             ->setText($text)
             ->setVideo($video)
             ->setTime($time);
    }

    public function setAuthor($author)
    {
        $this->author = $author;
        return $this;
    }

    public function getAuthor()
    {
        return $this->author;
    }

    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    public function getId()
    {
        return $this->id;
    }

    public function setText($text)
    {
        $this->text = $text;
        return $this;
    }

    public function getText()
    {
        return $this->text;
    }

    public function setTime($time)
    {
        $this->time = $time;
        return $this;
    }

    public function getTime()
    {
        return $this->time;
    }

    public function setVideo($video)
    {
        $this->video = $video;
        return $this;
    }

    public function getVideo()
    {
        return $this->video;
    }
}